package cn.cimoc.controller;

import cn.cimoc.serivce.AService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * @author LGZ
 * @date 2022/7/5 16:21
 * <p>
 */
@Controller
public class AController {

    @Autowired
    AService service;

    @PostMapping("/cast")
    public String cast(ModelMap map, @RequestParam String in, @RequestParam String out, @RequestParam Double price) {
        service.faq(map, in, out, price);
        return "/price";
    }

}
